import asset  from '../utils/zynrequest'


// 获取资产列表
export function asset_list(payload = {}) {
    return asset.get('/api/AssetManage/getlist',  {params:payload} )
}

// 获取资产类别列表
export function asset_kind(payload = {}) {
    return asset.get('/api/sorts',  {params:payload} )
}

// 查看资产类别详情
export function detaill_kind(payload = {}) {
    return asset.get('/api/AssetManage/editlist1',  {params:payload} )
}

// 编辑资产类别
export function change_kind(payload = {}) {
    return asset.post('/api/AssetManage/editlist2', payload )
}

// 删除资产列表
export function delete_one( payload = {} ){
    return asset.get('/api/AssetManage/deletesinglelist',{params:payload} );
}

// 新增资产类别
export function kind_add( payload = {} ){
    return asset.post('/api/AssetManage/addkindlist', payload );
}

// 删除资产类别
export function delete_kind( payload = {} ){
    return asset.get('/api/AssetManage/deleteAssetInventory',{params:payload} );
}

// 新增盘点
export function inventory_add( payload = {} ){
    return asset.post('/api/AAssetManage/addAssetInventory', payload );
}

// 删除资产盘点
export function delete_check( payload = {} ){
    return asset.get('/api/AssetManage/deleteAssetInventory',{params:payload} );
}

// 获取采购单列表
export function buy_list(payload = {}) {
    return asset.get('/api/pos',  {params:payload} )
}

// 删除采购单
export function delete_buy( payload = {} ){
    return asset.get('/api/InventoryManagement/toVoidList', {params:payload} );
}

// 获取仓库管理列表
export function warehouse_list(payload = {}) {
    return asset.get('/api/warehouses',  {params:payload} )
}
// 仓库管理删除
export function delete_manage( payload = {} ){
    return asset.get('/api/AssetManage/editwarehouse', {params:payload} );
}